import request from '@/utils/request'

export const url = {
  getPage: 'buss/model/list'
}

export function getList(params) {
  return request({
    url: url.getPage,
    method: 'get',
    params
  })
}

export function saveItem(params) {
  return request.post('buss/model/save', params)
}

export function delItem(params) {
  return request.post('buss/model/del', null, params)
}

export function deploy(params) {
  return request.post('buss/model/deploy', null, params)
}

export function exportActiviti(params) {
  return request.post('buss/model/export', null, params)
}

export function importActiviti(params, header) {
  return request.post('buss/model/import', params, header)
}
